
<%@ page import="mms.FoodRetail" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="bubble" />
        <g:set var="entityName" value="${message(code: 'foodRetail.label', default: 'FoodRetail')}" />
        <title><g:message code="default.list.label" args="[entityName]" /></title>
        <g:javascript src="foodRetail/list.js" />
    </head>
    <body>
        <div class="nav">
      </div>
        <div class="body">
            <h1>餐饮企业实时台帐</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="list">
                <table>
                    <thead>
                        <tr>
                        
                         
                            <g:sortableColumn property="name" title="${message(code: 'foodRetail.name.label', default: 'Name')}" />
                        
                            <g:sortableColumn property="specifications" title="${message(code: 'foodRetail.specifications.label', default: 'Specifications')}" />
                        
                            <g:sortableColumn property="amount" title="${message(code: 'foodRetail.amount.label', default: 'Amount')}" />
                            <g:sortableColumn property="amount" title="${message(code: 'foodRetail.supplier.label', default: 'supplier')}" />
                        
                            <g:sortableColumn property="purchasetime" title="${message(code: 'foodRetail.purchasetime.label', default: 'Purchasetime')}" />
                        
                         
                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${foodRetailInstanceList}" status="i" var="foodRetailInstance">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                                                
                            <td><b>${fieldValue(bean: foodRetailInstance, field: "name")}</b></td>
                        
                            <td>${fieldValue(bean: foodRetailInstance, field: "specifications")}</td>
                        
                            <td>${fieldValue(bean: foodRetailInstance, field: "amount")}</td>
                            <td>${fieldValue(bean: foodRetailInstance, field: "supplier")}</td>
                        
                            <td>${foodRetailInstance.purchasetime?.replace("00:00:00.000","")}</td>
                         
                        
                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
            <div class="paginateButtons">
                <g:paginate total="${foodRetailInstanceTotal}" id="${id}"/>
            </div>
        </div>
    </body>
</html>
